package com.vb.scrum.client.widget;

import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class TaskSticky extends Widget {
	private Label dragger;
	private TextArea txtArea;
	VerticalPanel sticky;
	
	public Label getDragger() {
		return dragger;
	}

	public void setDragger(Label dragger) {
		this.dragger = dragger;
	}

	public TextArea getTxtArea() {
		return txtArea;
	}

	public void setTxtArea(TextArea txtArea) {
		this.txtArea = txtArea;
	}

	public VerticalPanel getSticky() {
		return sticky;
	}

	public void setSticky(VerticalPanel sticky) {
		this.sticky = sticky;
	}

	public Widget onInitialize(){
		sticky=new VerticalPanel();
		sticky.setStyleName("scrum-task-sticky");
		sticky.setSize("110px", "110px");				
		dragger=new Label("");
		dragger.setSize("100px", "12px");
		dragger.setStyleName("scrum-task-header");		
		txtArea=new TextArea();
		txtArea.setSize("105px", "95px");
		txtArea.setStyleName("scrum-task-text");
		sticky.add(dragger);
		sticky.add(txtArea);						
		return sticky;
	}
	
}
